package com.znjc.device.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.znjc.common.annotation.DataSource;
import com.znjc.common.enums.DataSourceType;
import com.znjc.device.domain.*;
import com.znjc.device.domain.vo.IotData;
import com.znjc.device.domain.vo.TdengineQueryVO;

import java.util.Date;
import java.util.List;


public interface DeviceDataService extends IService<DeviceData> {
    public void saveNbq(NbqData entity);

    public void saveTdzhb(TdzhbData entity);

    public void saveCx(CxData entity);

    public void saveHl(HlData entity);

    List<IotData> getListIotData(TdengineQueryVO queryVO);

    List<IotData> getListIotData(LambdaQueryWrapper<IotData> wrapper);

    /**
     * 查询设备数据趋势
     */
    List<IotData> selectTrendData(List<Long> deviceIds, List<Long> pointIds, Date startTime, Date endTime, String dataType);

    Boolean saveDeviceDatas(List<DeviceData> deviceDatas);
}

